<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>汇智电商首页</title>
    <style>
        /* 清除默认样式 */
        *{padding: 0; margin: 0;}

        body{
            display: flex;
            flex-direction: column;
            height: 100vh;
            width: 100%;
        }

        .g-search{
            height: 50px;
            background-color: red;
            display: flex;
            align-items: center;
            padding: 4px;
        }
        .g-search h2{
            width: 50px;
            font-size: 16px;
            color: white;
            font-weight: normal;
            text-align: center;
        }
        .g-search input{
            flex-grow: 1;
            height: 40px;
            outline: none;
            border: none;
            border-radius: 8px;
            text-indent: 5px;
        }


        .g-wrapper{
            height: calc(100vh-50-70);
            background-color: gold;
            overflow: scroll;
        }

        .g-wrapper .g-swiper{
            height: 200px;
            background-color: cadetblue;
        }

        .g-wrapper .g-category{
            height: 200px;
            background-color: brown;
        }

        .g-wrapper .g-goods{
            height: 500px;
            background-color: chocolate;
        }

        .g-footer{
            height: 70px;
            background-color: white;
            display: flex;
            align-items: center;
            justify-content: space-around;
        }
        .a .box{
        width: 20%;
        text-align: center;
        flex-shrink: 0;
    }
    .a .box img{
        width: 50px;
        height: 60px;
        border-radius: 50%;
    }
    .a .box p{
        text-align: center;
    }
    .g{
        display: flex;
    }


    </style>
</head>

<body>
    <!-- 搜索区域 -->
    <div class="g-search">
        <h2>城市</h2>
        <input type="text" placeholder="请输入搜索内容">
        <h2>登录</h2>
    </div>

    <!-- 中间滚动区域 -->
    <div class="g-wrapper">
        <!-- 轮播子区域 -->
        <div class="g-swiper">轮播子区域</div>
        
        <!-- 分类子区域 -->
        <div class="g-category">分类子区域</div>
            <div class="box">
                <img src="../img/11.jpg" alt="11">
                <p>熊猫</p>
            </div>
            <div class="box">
                <img src="../img/22.jpg" alt="11">
                <p>美食</p>
            </div>
            <div class="box">
                <img src="../img/33.jpg" alt="11">
                <p>食物</p>
            </div>
            <div class="box">
                <img src="../img/44.jpg" alt="11">
                <p>数码</p>
            </div>
            <div class="box">
                <img src="../img/11.jpg" alt="11">
                <p>熊猫</p>
            </div>
            <div class="box">
                <img src="../img/22.jpg" alt="11">
                <p>美食</p>
            </div>
            <div class="box">
                <img src="../img/33.jpg" alt="11">
                <p>食物</p>
            </div>
            <div class="box">
                <img src="../img/44.jpg" alt="11">
                <p>数码</p>
            </div>
    
            <div class="box">
                <img src="../img/33.jpg" alt="11">
                <p>食物</p>
            </div>
            <div class="box">
                <img src="../img/44.jpg" alt="11">
                <p>数码</p>
            </div>
        </div>
        <!-- 商品列表区域 -->
        <div class="g-goods">商品列表区域</div>
        <div class="p">
            <!-- 商品项 -->
            <div class="g">
                <img src="../img/11.jpg" alt="11">
                <div class="r">
                    <h2>科(Kelon)正1.5匹</h2>
                    <p>科(Kelon)正1.5匹 定速</p>
                    <p>价格:90</p>
                </div>
            </div>
    
            <div class="g">
                <img src="../img/22.jpg" alt="11">
                <div class="r">
                    <h2>科(Kelon)正1.5匹</h2>
                    <p>科(Kelon)正1.5匹 定速</p>
                    <p>价格:90</p>
                </div>
            </div>
        </div>
    </div>

    <!-- 底部区域 -->
    <div class="g-footer">
        <div>首页</div>
        <div>分类</div>
        <div>购物车</div>
        <div>我的</div>
    </div>
</body>

</html>